Debounce function still executes the same number of times